		 **************************************************************
		 **															 **
		 ** Paper: Freedom of Foreign Movement and Human Trafficking **
		 **														     **
		 ** Authors: Sam R. Bell & Richard W. Frank 				 **
		 **															 **
		 ** Date: May 12, 2021										 **
		 **															 **
		 ** Task: Table A7-Model 2 results with varying distances 	 **
		 **															 **
		 **************************************************************
		  
									 
			clear
			version 16.1
			set seed 1234

			** Change working directory
			cd "~"
			 
			use "ht_merged.dta"	
			merge 1:1 ccode year using "ht_eba_ivs.dta"		
			global IVs "gdp_ln pop_ln"
			
			
		 				***********************************	
						***  Model 2, various distances ***
						***********************************	
 			
				
			** 2.12 CIRI interaction, 12km
			
			probit F.source fm W_fm_con12  interact_W_C_f12 $IVs , robust cluster (ccode) 
				
				tab year if e(sample)
				codebook ccode if e(sample)	
				estat ic
				estimates store M2_12
 	
				
			** 2.24 CIRI interaction, 24km
			
			probit F.source fm W_fm_con24  interact_W_C_f24 $IVs , robust cluster (ccode) 
				
				tab year if e(sample)
				codebook ccode if e(sample)	
				estat ic
				estimates store M2_24
				
				
			** 2.150 CIRI interaction, 150km
			
			probit F.source fm W_fm_con150  interact_W_C_f150 $IVs , robust cluster (ccode) 
				
				tab year if e(sample)
				codebook ccode if e(sample)	
				estat ic
				estimates store M2_150
 		
							
			** 2.400 CIRI interaction, 400km
			
			probit F.source fm W_fm_con400  interact_W_C_f400 $IVs , robust cluster (ccode) 
				
				tab year if e(sample)
				codebook ccode if e(sample)	
				estat ic
				estimates store M2_400
 		
			esttab M2_12 M2_24 M2_150 M2_400 using "model2_distances.csv", replace ///
			title(Model 2: various distances, probit results) ///
			obslast label se nogaps scalars(N pr2)  star(* 0.05 ** 0.01 *** 0.001)  
